<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>修改密码</title>
</head>

<body>
<script type="text/javascript">
	
	function rec(form){
	
	 
	 
	 var a= form.a.value;
	 var b= form.b.value;
	 var c= form.c.value;
	 if(c==b)
	alert("新密码一致，确认修改密码");
	else
		alert("密码不一致，请重新输入密码！");
		
	function re(form){
	 form.a.value="";
	 form.b.value="";
	 form.c.value="";
	}	
	}
	
</script>

<form action="">
<table width="321" border="1">
	<tr>
    	<td colspan="3" align="center">修改密码</td>
    </tr>
	<tr>
		<td>&nbsp;</td>
		<td>旧密码：</td>
		<td><input type="password" name="a" value="" /></td>
    </tr>
	<tr>
		<td>&nbsp;</td>
        <td>新密码：</td>
        <td><input type="password" name="b" value="" /></td>
    </tr>
    <tr>
    	<td>&nbsp;</td>
        <td>确认密码：</td>
        <td><input type="password" name="c" value=""/></td>
    </tr>
    <tr>
    	<td>&nbsp;</td>
        <td><input  type="submit" name="Sub" value="提交" onclick="rec(this.form)"/></td>
        <td> <input type="reset" name="Res" value="重置" onclick="re(this.form)"/></td>
     </tr>
</table>
</form>
</body>
</html>
